package codeforces;

import java.util.Scanner;

public class SchoolAndGroups {
	
	private static void sort(int[] mas) {
		for (int i = 1; i < mas.length; i++) {
			int curr = mas[i];
			int j;
			for (j = i; j > 0 && (mas[j - 1] > curr); j--) {
				mas[j] = mas[j - 1];
			}
			mas[j] = curr;
		}
	}
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int m = s.nextInt();
		int[] marks = new int[m];
		int i = 0;
		while(i < m) {
			marks[i] = s.nextInt();
			i++;
		}
//		int x = s.nextInt();
//		int y = s.nextInt();
		
		sort(marks);
		
		int k = 0;
		for (int j = 0; j < m; j++) {
			System.out.println(marks[j]);
		}
	}
}
